package com.example.commentservice.service;

import com.example.commonapi.pojo.Comment;
import com.example.commonapi.pojo.UAC;

import java.util.List;

public interface CommentService {

    int addComment(Comment comment);

    List<Comment> getCommentByTopicId(Integer topicId);

    void deleteComment(int id);

    void deleteCommentByTopicId(int topicId);

    List<UAC> getUACByTopicId(Integer topicId);

    List<UAC> getUACByUserId(Integer userId);

    Comment getCommentById(Integer id);

    void updateComment(Comment comment);

    void deleteCommentByUserId(Integer userId);
}
